import {
    createRouter,
    createWebHashHistory,
    RouteRecordRaw
} from 'vue-router'
import Home from '@/view/home.vue'
import Vuex from '@/view/vuex.vue'
import Axios from '@/view/axios.vue'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/vuex',
        name: 'Vuex',
        component: Vuex
    },
    {
        path: '/axios',
        name: 'Axios',
        component: Axios
    },
]
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router